home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / junior.arc / NUJUNIOR.DOC < prev    next >
Text File  |  1980-01-01  |  5KB  |  126 lines

  1.                       FIVE SIMPLE PROGRAMS FOR PCjr.
  2.  
  3.     The five programs printed here will greatly improve your control
  4.     over your PCjr.  However, in order for any of them to work, you
  5.     must have the statement "DEVICE=ANSI.SYS" in your CONFIG.SYS file
  6.     on your boot disk.  All five programs use ANSI, so if it's not
  7.     there they won't work.
  8.  
  9.     The first program in the library is COL1.BAT.  You can use it to
  10.     set foreground color, background color, and mode one at a time by
  11.     typing COL1 and then the number of the color or mode.  The numbers
  12.     to use are:
  13.  
  14.                      Number       Type Mode
  15.  
  16.                         0         White characters on black background
  17.  
  18.                         1         High Intensity
  19.  
  20.                         4         Monochrome underline
  21.  
  22.                         5         Blink
  23.  
  24.                         7         Reverse Video
  25.  
  26.                         8         Invisible text
  27.  
  28.  
  29.                       Color    Foreground     Background
  30.  
  31.                      Black        30             40
  32.  
  33.                      Red          31             41
  34.  
  35.                      Green        32             42
  36.  
  37.                      Yellow       33             43
  38.  
  39.                      Blue         34             44
  40.  
  41.                      Magenta      35             45
  42.  
  43.                      Cyan         36             46
  44.  
  45.                      White        37             47
  46.  
  47.     For instance to change the foreground (character) color to red,
  48.     type "COL1 31".  To change to blinking text, type "COL1 5".  Ther
  49.     are obviously many combinations.
  50.  
  51.     The next program is COL2.BAT.  It lets you change both the
  52.     foreground and background color at the same time, or either color
  53.     in combination with a mode by typing "COL2" and any combination of
  54.     the numbers in the tables above WITH NO PUNCTUATION IN BETWEEN THE
  55.     NUMBERS!!!  For instance, my personal favorite is black characters
  56.     on a magenta background (this is a lot easier to read than the
  57.     usual white on black).  I have the statement "COL2 30 45" in my
  58.     AUTOEXEC.BAT file so my Junior always comes up in that mode.
  59.  
  60.     The next file is CHAR.BAT.  You can use it to redefine any of the
  61.     character keys on your keyboard.  All you do is type "CHAR" and
  62.     then the number of the key you want changed, and the number of the
  63.     character you want it changed to.  By number of the key, I mean
  64.     the ASCII value of the key.  See appendix G of your BASIC manual
  65.     for all of the ASCII values.  For instance, to change the close
  66.     bracket key (]) to a star (*), type "CHAR 93 42" (notice no
  67.     punctuation between the numbers).  This particular command will
  68.     give you a star in lower case, which any self-respecting DOS
  69.     machine should have.
  70.  
  71.     The fourth program REDEF.BAT, lets you assign any character or
  72.     function with an ASCII value of greater then 32 to any key on the
  73.     keyboard that has an EXTENDED ASCII code. You can find the
  74.     extended ASCII codes at the END of appendix G in the BASIC manual.
  75.  
  76.     Finally, REDEFS.BAT lets you assign your own function keys.  The
  77.     codes for the function keys are:
  78.  
  79.               Function Key      Code
  80.  
  81.                      1            59
  82.  
  83.                      2            60
  84.  
  85.                      3            61
  86.  
  87.                      4            62
  88.  
  89.                      5            63
  90.  
  91.                      6            64
  92.  
  93.                      7            65
  94.  
  95.                      8            66
  96.  
  97.                      9            67
  98.  
  99.                     10            68
  100.  
  101.     For instance, to make F1 copy an entire disk, type "REDEFS 59
  102.     DISKCOPY".  The big drawback to REDEFS is that you can't use any
  103.     commands that contain spaces in your redefinition.  In other
  104.     words, things like COPY CON: or CHKDSK A: won't work.  But there
  105.     are plenty of other commands that don't have spaces that will
  106.     work.  You can also put your function key redefinitions in your
  107.     AUTOEXEC.BAT file so the computer will always come up in that
  108.     mode.
  109.  
  110.     The important thing to remember when you are using these programs
  111.     is that they only work when your machine is under the control of
  112.     DOS.  When you call a program be ready for boring old white on
  113.     black and possibly a redefinition (by the program ) of the
  114.     function keys.  However, when the program returns control to DOS,
  115.     everything will be put back the way you defined it.
  116.  
  117.     The source code for all of these programs can be found in Paul
  118.     Somersons READER TO READER column in the September 1984 edition of
  119.     PCjr. magazine.  Paul also explains them much better than I do, so
  120.     you might want to read his column too to learn more of the finer
  121.     points of the programs.
  122.  
  123.     ENJOY!!
  124.  
  125.  
  126.